package com.zrx.springboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.sql.Timestamp;

@Data

@TableName(value = "admin")
@EqualsAndHashCode(callSuper = false)
public class Admin extends Model<Admin> implements Serializable {
    //id自动增加
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String adminname;
    private String password;
    private Timestamp date;
}
